include ../../Makehead

LdFlags += -r
CFlags += -finline-functions -I../../include
CPP += -I../../include

.c.s:
	$(CC) $(CFlags) -S -o $*.s $<
.s.o:
	$(AS) -o $*.o $<
.c.o:
	$(CC) $(CFlags) -c -o $*.o $<

OBJS = bitmap.o minix_op.o  file_dev.o inode.o namei.o truncate.o 

build: minix.o 

minix.o: $(OBJS)
	$(LD) $(LdFlags) -o $@ $(OBJS)
	sync

clean:
	rm -rf *.o *.s 